<?php

namespace App\Datalog;

class AdFirstup extends LaravelDatalogBase
{
    // 日志名称
    protected $name = 'firstup';

    // 请求日志单独存放
    protected $logPath = 'datalogs/ad_firstup';

    protected $maxSaveDay = 30;

    protected $formatter = 'context';

    public function addLog($firstup_ad_id)
    {
        $params = [
            'create_time' => time(),
            'id'          => $firstup_ad_id,
        ];

        $this->log($params);
    }
}
